﻿#ifndef LOGINWIDGET_H
#define LOGINWIDGET_H

#include <QWidget>
#include "registerwidget.h"
#include "mainwindow.h"
#include "usernetworkaccessmanager.h"
#include "usertradewidget.h"
#include "findpasswordwidget.h"

namespace Ui {
class LoginWidget;
}

class LoginWidget : public QWidget
{
    Q_OBJECT

public:
    explicit LoginWidget(QWidget *parent = nullptr);
    ~LoginWidget();

private slots:
    void on_pushButtonCancel_clicked();

    void on_pushButtonLogin_clicked();

private:
    void on_loginSuccess(const QString message);

    Ui::LoginWidget *ui;
    RegisterWidget registerWidget;
    FindPasswordWidget findPasswordWidget;
    UserTradeWidget userTradeWidget;
    MainWindow mainWindow;

    UserNetworkAccessManager *manager;
};

#endif // LOGINWIDGET_H
